package com.lagou.model;

import java.io.Serializable;

public class Question implements Serializable {
    private static final long serialVersionUID = -7566063135551182039L;
    private int qId;
    private String qWords;
    private String answer1;
    private String answer2;
    private String answer3;
    private String answer4;
    private String rightAnswer;

    public Question() {
    }

    public Question(int qId, String qWords, String answer1, String answer2, String answer3, String answer4, String rightAnswer) {
        this.qId = qId;
        this.qWords = qWords;
        this.answer1 = "A." + answer1;
        this.answer2 = "B." + answer2;
        this.answer3 = "C." + answer3;
        this.answer4 = "D." + answer4;
        this.rightAnswer = rightAnswer;
    }

    public int getqId() {
        return qId;
    }

    public void setqId(int qId) {
        this.qId = qId;
    }

    public String getqWords() {
        return qWords;
    }

    public void setqWords(String qWords) {
        this.qWords = qWords;
    }

    public String getAnswer1() {
        return answer1;
    }

    public void setAnswer1(String answer1) {
        this.answer1 = answer1;
    }

    public String getAnswer2() {
        return answer2;
    }

    public void setAnswer2(String answer2) {
        this.answer2 = answer2;
    }

    public String getAnswer3() {
        return answer3;
    }

    public void setAnswer3(String answer3) {
        this.answer3 = answer3;
    }

    public String getAnswer4() {
        return answer4;
    }

    public void setAnswer4(String answer4) {
        this.answer4 = answer4;
    }

    public String getRightAnswer() {
        return rightAnswer;
    }

    public void setRightAnswer(String rightAnswer) {
        this.rightAnswer = rightAnswer;
    }

    @Override
    public String toString() {
        return "Question{" +
                "qId=" + qId +
                ", qWords='" + qWords + '\'' +
                ", answer1='" + answer1 + '\'' +
                ", answer2='" + answer2 + '\'' +
                ", answer3='" + answer3 + '\'' +
                ", answer4='" + answer4 + '\'' +
                ", rightAnswer='" + rightAnswer + '\'' +
                '}';
    }
}
